package com.taobao.api.domain;

import com.taobao.api.TaobaoObject;
import com.taobao.api.internal.mapping.ApiField;

/**
 * 函数配置
 *
 * @author auto create
 * @since 1.0, null
 */
public class Function extends TaobaoObject {

	private static final long serialVersionUID = 2898918728379493626L;

	/**
	 * 规则创建人
	 */
	@ApiField("creator")
	private String creator;

	/**
	 * 函数配置id
	 */
	@ApiField("id")
	private Long id;

	/**
	 * 函数配置名称
	 */
	@ApiField("name")
	private String name;

	/**
	 * 规则解析类型 0：JSON 1：规则表达式
	 */
	@ApiField("parse_type")
	private Long parseType;

	/**
	 * 规则表达式
	 */
	@ApiField("rule")
	private String rule;

	/**
	 * 0：审核中 1：审核通过，正常，-1：删除
	 */
	@ApiField("status")
	private Long status;

	/**
	 * 规则开放策略 0：user_id私有 1：全部开放 2：同一创建者下的user_id拥有
	 */
	@ApiField("strategy")
	private Long strategy;

	/**
	 * 规则拥有者
	 */
	@ApiField("user_id")
	private Long userId;

	public String getCreator() {
		return this.creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Long getId() {
		return this.id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public Long getParseType() {
		return this.parseType;
	}
	public void setParseType(Long parseType) {
		this.parseType = parseType;
	}

	public String getRule() {
		return this.rule;
	}
	public void setRule(String rule) {
		this.rule = rule;
	}

	public Long getStatus() {
		return this.status;
	}
	public void setStatus(Long status) {
		this.status = status;
	}

	public Long getStrategy() {
		return this.strategy;
	}
	public void setStrategy(Long strategy) {
		this.strategy = strategy;
	}

	public Long getUserId() {
		return this.userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
